{% extends "base.html" %}
{% load static %}
{% load crispy_forms_tags %}

{% block title %}
Profile | {{ block.super }}
{% endblock title %}

{% block stylesheets %}
{{ block.super }}
<!-- Custom styles for this template -->
<link href="{% static "laioffer/css/dashboard.css" %}" rel="stylesheet">
{% endblock stylesheets %}

{% block content %}

{% if request.user.current_group == "Teacher" %}
    {% include "_teacher_sidebar.html" %}
{% elif request.user.current_group == "Supervisor" %}
    {% include "_admin_sidebar.html" %}
{% elif request.user.current_group == "Student" %}
    {% include "_student_sidebar.html" %}
{% elif request.user.current_group == "Assistant" %}
    {% include "_ta_sidebar.html" %}
{% endif %}

  <!--main content start-->
  <section id="main-content">

     <section class="wrapper">

        <div class="col-lg-2"></div>
        <div class="col-lg-8">
            {% include "_message.html" %}
            <form method="post" enctype="multipart/form-data" class="form-horizontal">
                {% csrf_token %}
                {{ user_limited_form|crispy }}
                <div class="col-md-3">
                </div>
                <div class="col-md-3">

                    <button class="btn-primary btn-lg" type="submit">Update</button>
                </div>
                <div class="col-md-3">
                    <button class="btn-lg" type="submit" onclick="javascript:history.back()">Cancel</button>
                </div>
                <div class="col-md-3">
                </div>

            </form>
        </div>
        <div class="col-lg-2"></div>

    </section>
</section>

{% endblock content %}
